package com.hydeng.house.controller;

import com.hydeng.house.biz.service.UserService;
import com.hydeng.house.common.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * Description:
 *
 * @author: hydeng
 * @since: 2018-03-06
 */
@Controller
public class UserController {

    @Autowired
    private UserService userService;

    @RequestMapping("/users")
    public List<User> getUsers()
    {
        return userService.selectUsers();
    }
}
